{
	template:`
	<a-page-header title="会员充值"  >
		<template #extra>
			<a-button type="primary" @click="save">保存</a-button>
			<m-back @click="back(false);">关闭</m-back>
		</template>
		<a-card :hoverable="true" :bodyStyle="{padding:'20px 20px 0'}">
			<a-form class="index-form" :wrapper-col="{span:24}">
				<a-row :gutter="10">
					<a-col :span="16">
						<a-form-item label="会员信息" class="index-form-item">
						    <template v-if="model.member.oid">
						        <a-tag :color="model.member.level.color">{{model.member.level.name}}</a-tag>
						        {{model.member.realName}} {{model.member.phoneNum}}
						    </template>
							<a-button class="margin-left-sm" type="primary" size="small" @click="selectOneModel(model,'member','action/member/manage/memberInfo/selectList',750)">选择</a-button>
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="服务员" class="index-form-item">
							{{model.serveAdmin.realname}}
							<a-button v-if="confirmPower" class="margin-left-sm" type="primary" size="small" @click="selectOneAdmin(model,'serveAdmin',model.inputDept.oid,'')">选择</a-button>
						</a-form-item>
					</a-col>
					<a-col :span="24">
						<a-form-item label="付款类型" class="index-form-item">
							<a-radio-group v-model:value="model.type" :options="dictOptions('m.member.order.model.MemberRecharge!type')" />
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="付款金额" class="index-form-item">
							<a-input-number v-model:value="model.payAmount" addon-after="元" :precision="2" :min="0" />
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="赠送金额" class="index-form-item">
							<a-input-number v-model:value="model.giveAmount" addon-after="元" :precision="2" :min="0" />
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="赠送积分" class="index-form-item">
							<a-input-number v-model:value="model.givePoint" :precision="0" :min="0" />
						</a-form-item>
					</a-col>
					<a-col :span="24">
						<a-form-item label="备注" class="index-form-item">
							<a-input v-model:value="model.remark" />
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="录入人" class="index-form-item">
							{{model.inputAdmin.realname}}
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="录入店铺" class="index-form-item">
							{{model.inputDept.name}}
						</a-form-item>
					</a-col>
					<a-col :span="8">
						<a-form-item label="录入时间" class="index-form-item">
							{{formatDate(model.inputDate,'yyyy-MM-dd')}}
						</a-form-item>
					</a-col>
				</a-row>
			</a-form>
		</a-card>
	</a-page-header>
	`,
	props: ['localeZh','param','parentVue'],
	data:function(){
		return {
			model:{"member":{},"serveAdmin":{},"inputAdmin":{},"inputDept":{}},
			confirmPower:false,
		};
	},
	mounted(){
	    this.model=this.param.model;
	    this.confirmPower=this.param.confirmPower;
	},
	methods:{
		save:function(){
			this.requestData('action/member/order/memberRecharge/doSave',
				{model:this.model},
				data=>{
					if(!data.code){
						this.$message.success(data.msg);
						this.back(true);
					}else{
						this.$message.error(data.msg);
					}
				}
			);
		},
	}
}